<?xml version="1.0" encoding="utf-8" ?>

<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" />
	<xsl:template match="*">
		<hsj width="826" height="456" left="0" top="0" size="0"  color="#CCFFCC">
			<image width="826" height="456" left="0" top="0" color="" value="test.jpg" print="false" />

			<text width="0" height="0" left="407" top="98" size="8" color="#000000" value="字段０" />

			<text left="135" top="115">
				<value><xsl:value-of select="myName" /></value>
			</text>
			<text left="256" value="字段２" />
			<text left="376">[sum=<xsl:value-of select="ceiling((number(concat('0',item1)) + number(concat('0',item2)) + number(concat('0',item3)) + number(concat('0',item4)) + number(concat('0',item5)) + number(concat('0',item10))) * 100) div 100" />]
			</text>

			<setting left="78" top="138" key="01" />
			<setting left="288" key="02" />
			<setting left="358" key="03" />
			<setting left="428" key="04" />

			<xsl:for-each select="data0">
				<text top="+20" key="01">
					<xsl:value-of select="@item0" />
				</text>
				<text top="+20" key="02">
					<xsl:value-of select="@item1" />
				</text>
				<text top="+20" key="03" value="表０３" />
				<text top="+20" key="04">
					<xsl:value-of select="@item3" />
				</text>
			</xsl:for-each>

			<text left="364" top="339">
				<xsl:attribute name="value">
					<xsl:value-of select="item0" />
				</xsl:attribute>
			</text>
			<text left="162" top="360">
				<xsl:attribute name="value">
					<xsl:value-of select="item1" />
				</xsl:attribute>
			</text>
			<text left="137" top="388">
				<xsl:value-of select="item2" />
			</text>
			<text left="322" top="388">
				<xsl:value-of select="date" />
			</text>

			<setting left="775" top="66" key="11" />
			<setting left="805" top="106" key="12" />
			<setting left="811" top="124" key="13" />
			<setting left="811" top="143" key="14" />
			<setting left="811" top="162" key="15" />
			<setting left="788" top="313" key="16" />
			<setting left="817" top="333" key="17" />
			<setting left="803" top="353" key="18" />

			<xsl:for-each select="data1[position() &lt;= 3]">
				<text left="-91" key="11">
					<xsl:value-of select="@item0"/>
				</text>
				<text left="-91" key="12">
					<xsl:value-of select="@item1" />
				</text>
				<text left="-91" key="13">
					<xsl:value-of select="../myName" />
				</text>
				<text left="-91" key="14">
					<xsl:value-of select="../address/@city" />
				</text>
				<text left="-91" key="15">
					<xsl:value-of select="/*/address" />
				</text>
				<text left="-91" key="16" value="附２６" />
				<text left="-91" key="17">
					<xsl:value-of select="../@user" />
				</text>
				<text left="-91" key="18">
					<xsl:value-of select="../date" />
				</text>
			</xsl:for-each>


			<arc width="20" height="30" left="40" top="50" size="5" color="#ffff00" value="60,300" />
			<line width="20" height="30" left="40" top="50" size="4" color="#ff00ff" value="" />
			<rectangle width="20" height="30" left="40" top="50" size="3" color="#00ffff" value="" />
		</hsj>
	</xsl:template>
</xsl:stylesheet>